package com.ruoyi.project.museums.controller;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.framework.aspectj.lang.annotation.Anonymous;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.project.museums.domain.FinalSystem;
import com.ruoyi.project.museums.domain.UserAnswer;
import com.ruoyi.project.museums.service.IFinalSystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**

/**
 * @ClassName FinalSystemController
 * @Description 终端接口
 * @Author zhixian li 
 * @Date 2023年02月22日 16:13 
 * @Version 1.0
 */
@RestController
@RequestMapping("/museums/finalSystem")
public class FinalSystemController extends BaseController {

    @Autowired
    private IFinalSystemService finalSystemService;

    @Anonymous
    @ResponseBody
    @RequestMapping(value ="/getSystemInfoList",method = RequestMethod.POST)
    public JSONObject getSystemInfoList(HttpServletRequest request, HttpServletResponse response){
        FinalSystem finalSystem = new FinalSystem();
        List<FinalSystem> finalSystemList = finalSystemService.selectList(finalSystem);

        JSONObject json  = new JSONObject();
        json.put("list",finalSystemList);
        json.put("code","200");
        json.put("msg","获取成功");
        return json;

    }
}
